External links
An external link is a standard web link targeting for example a website.
For example, https://en.wikipedia.org/wiki/South_China_Sea is
an external link to a Wikipedia page.
To create a link without a custom text:
- Press
in the Formatting toolbar:
- A popup will appear, type or paste the URL in the box.
- Press Enter or the check mark icon to confirm.
- Alternatively, press Ctrl+K to trigger the aforementioned
popup.
- A simpler way is to paste the raw link and press space to turn it automatically
into a link.
To create a link with a custom text:
- First, type and select the text which will be turned into a link.
- Follow the previous steps to open the link interface (via the formatting
toolbar, or Ctrl+K).
- Alternatively, simply paste (Ctrl+V) over the selected
text to turn it into a link.
Once a link is inserted:
- The text inside the link can be changed if needed but the link itself
will remain.
- To modify the link, click on the link to display the popup and press the
Edit link button.
- To remove a link, click on it and press the
Unlink button.
You can follow external link by either double clicking (will open new
tab/window) it or right clicking on them and choosing "Open in new tab".
Internal links to notes
Unlike external notes, internal links (links to other notes) can be created
at the current position by :
- Pressing Ctrl + L or the
button from the Formatting toolbar.
- Filling in the desired note to link. It's also possible to create notes
from this dialog by typing a non-existing note title and selecting Create and link child note.
There are two link types, adjustable when creating the link to the note:
- link title mirrors the note's current title
- This is sometimes also called "reference link".
- Title of such links cannot be changed, instead it is always mirroring
the title of linked note.
- The icon of the note is also displayed.
- The link title will automatically update if the title of the note is changed.
- link title can be changed arbitrarily
- This is the traditional hyperlink, where the text of the link can be different
to the note title.
Once an internal link is created:
- You can follow the note link by double clicking it.
- Alternatively if you only wish to quickly preview the content, you can
hover over the link and will see read only preview.
Pasting links
- For internal links (links to notes in Trilium), press Ctrl+C in the
Note Tree:
- Pasting directly in a text note will create a reference link (with an
icon to the note and the actual note title).
- Pasting over an existing text will create a traditional link.
- For external links:
- Paste the raw URL directly and press space to turn it into a link.
- Select a text and paste the URL over it to turn that text into a link.
- If you are pasting a formatted link (e.g. from the a webpage in a browser),
simply paste it and it will keep the original text and URL.
In-place linking
Trilium also provides "inline" linking - type @ and you'll
see an autocomplete, just type few characters from the desired note title,
press enter and you have a link.
Note map
Trilium provides a visualisation of incoming and outgoing links for a
particular note. See note map for
details.